<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>e网批发管理后台</title>
  <?php include("common/conn.php"); 
    if($_SESSION['userid']==""){echo "<script>window.location.href='login.php';</script>";} 
  ?>
  <script type="text/javascript" src="js/jquery.min.js"></script>
  <link href="css/styles.css" rel="stylesheet" type="text/css" />
  <link href="css/style2.css" rel="stylesheet" type="text/css" />
  <link href="css/css.css" rel="stylesheet" type="text/css" />
  <style>
    .move_up,.move_down{
      margin-top: 0.5em;
      padding-top: 0.5em;
      display: inline-block;
      width: 4em !important;
      height: 2em !important;
      background-color: #FF963A !important;
      border-radius: 10px;
      margin: 0 0.5em 0.5em 0.5em;
    }
  </style>
</head>

<body>
  <!--header-->
  <?php include("common/header.php");?>
  <!--header end-->
  <div id="sub_nav">

    <div id="subnav_wrap" class="container_12">
       <!-- start sub nav list -->
      <div id="subnav" class=" grid_12">
        <ul>
          <li><a href="homeFenlei.php">返回首页分类列表</a></li>
          <li><a href="addhomeFenlei.php?id=<?php echo $_REQUEST[id];?>">编辑首页分类</a></li>
          <li><a href="homeFenlei_cat_tu.php?id=<?php echo $_REQUEST[id];?>"    class="sub_nav_active">厂商分类图片</a>
          </li>
        </ul>
      </div>

    </div>


  </div>

  <!-- end sub_nav -->
  <form action="?del=ok" method="post">
    <!-- EVERYTING BELOW IS THE MAIN CONTENT -->

    <div class="container_12">

      <table width="100%" border="0" cellpadding="0" cellspacing="0">

        <tr>
            <th width="30%" scope="col">活动图片</th>
            <th width="30%" scope="col">分类名称</th>
            <th width="40%" scope="col">操作</th>
          </tr>

   <?php
      $rert30 = mysql_query("select * from h_activity_fenl_tu  where activity_id=".$_GET[id]." order by cateid");
      while($sdg30 = mysql_fetch_array($rert30)){
           $rert31 = mysql_query("select * from categroy  where cateid=".$sdg30[cateid]);
           $sdg31=mysql_fetch_array($rert31);
  ?>
  <tr>
    <td scope="col"><img src="<?php echo $sdg30[images]; ?>" width="50%"  height="auto"></td>
    <td scope="col"><?php echo $sdg31[name]?$sdg31[name]:'全部';?></td>
    <td scope="col">
      <div class="youse2">
        <a href="addhomeFenlei_cat_tu.php?id=<?php echo $sdg30[id];?>">
          <span class="colorw">编辑</span>
        </a>
      </div>
    </td>
  </tr>

  <?php }?>
</table>
</div>

<!-- end content wrap -->

</form>
</body>
</html>
